//
// Created by renyi on 16/6/18.
//

#ifndef SSL_THREAD_SQL_PARSE_H
#define SSL_THREAD_SQL_PARSE_H


#define SQLHOST "localhost"
#define USERNAME "root"
#define PASSWORD "password"
#define DBNAME "zqb"
#define SQLRUN NULL


#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <mysql.h>

#ifdef __cplusplus
extern "C" {
#endif
MYSQL* SQL_setup();
//int check_sn(MYSQL *mysql, char *sn, char* info);
int update(MYSQL *mysql, char *query);
int getInfo(MYSQL *mysql, char *sn, char* info);
#ifdef __cplusplus
}
#endif

#endif //SSL_THREAD_SQL_PARSE_H
